package com.ptswitch.material.service.impl;

import java.util.List;

import org.hxzon.project.AbstractModelService;
import org.springframework.stereotype.Service;

import com.ptswitch.material.model.contract.ContractSupplier;
import com.ptswitch.material.service.ContractSupplierService;

@Service
public class ContractSupplierServiceImpl extends AbstractModelService<ContractSupplier> implements ContractSupplierService {

    @SuppressWarnings("unchecked")
    public List<String> findAllName() {
        return (List<String>) dao.query("select distinct p.supplier from Contract as p order by p.createTime desc");
    }

}
